Set the cursor on the surface of the target
widget, not the surface of some of its parents.
This does not make a difference currently.
But it will in the future, when we have
parented widgets with surfaces.
GtkWidget *target)
{
GdkCursor *cursor = NULL;
+ GdkSurface *surface;
+
+ surface = gtk_widget_get_surface (target);
if (grab_widget && !gtk_widget_is_ancestor (target, grab_widget))
{
}
}
- gdk_surface_set_device_cursor (gtk_widget_get_surface (GTK_WIDGET (toplevel)),
- device, cursor);
+ gdk_surface_set_device_cursor (surface, device, cursor);
}
void